package cn.com.vs.service.mapper;

import java.util.List;
import java.util.Map;

import cn.com.vs.service.domain.Activity;
import cn.com.vs.service.domain.ApplicationBrief;
import cn.com.vs.service.domain.Registration;
import cn.com.vs.service.domain.SportsData;
import cn.com.vs.service.domain.SportsDataDetail;
import cn.com.vs.service.domain.RecordData;


public interface ActivityMapper {
	
	public int createActivity(Map<String,Object> params);
		
	public Activity getActivity(int activityID);
	
	public List<Activity> getMyActivities(Map<String,Object> params);
	
	public List<Activity> getMyRegistrationsDetail(Map<String,Object> params);
	
	public List<Activity> getActivities(Map<String,Object> params);
	
	public List<Activity> getActivitiesInRange( Map<String,Object> params );
	
	public int deleteActivity(int id);
				
	public int updateActivity(Map<String,Object> params);
	
	public int registration(Map<String,Object> params);
	
	public int confirmRegistration(Map<String,Object> params);
	
	public List<Registration> getRegistrations(Map<String,Object> params);
	
	public List<ApplicationBrief> getMyRegistrations(Map<String,Object> params);
	
	public int cancelRegistration(Map<String,Object> params);
	
	public int createSportsData(Map<String,Object> params);
	
	public List<SportsData> getSportsData(Map<String,Object> params);
	public SportsData getSportsDataById(Long sportsId);
	
	public List<SportsData> syncSportsData(Map<String,Object> params);
	
	public SportsDataDetail getSportsDataDetail( Map<String,Object> params );
	
	public List<SportsData> getSportsDataRecordList(Map<String,Object> params);
	
	public List<RecordData> getUserSportsDataRecordData(int userid);
	
	public int createSportsDataRecord(Map<String,Object> params);
	
	public Map<String,Object> getUserSportsDataSummary(int userid);
	
	public int deleteSportsData( Map<String,Object> params );
	
	public List<Map<String,Object>> latestYearData(Map<String,Object> params);
	
	public List<Map<String,Object>> myDistanceRank( Map<String,Object> params );
	
	public List<Map<String,Object>> distanceStatistics( Map<String,Object> params );
	
  }
